home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / business / aesti967.zip / -EXIST.BAT < prev    next >
DOS Batch File  |  1996-07-07  |  5KB  |  110 lines

  1. echo off
  2. cls
  3.  
  4. if (%1)==() goto Help
  5.  
  6. if exist %1\nul goto DriveOK
  7. echo.
  8. echo    ┌──────────────────────────────────────────────────────────────────────┐
  9. echo    │                                                                      │
  10. echo    │    Error - invalid path was used                                     │
  11. echo    │                                                                      │
  12. echo    └──────────────────────────────────────────────────────────────────────┘
  13. echo.
  14. echo     Use -EXIST Destination where Destination is the path where the old
  15. echo     version of AEsti is located
  16. echo.
  17. echo     If the old version is located in C:\ESTI then use  -EXIST C:\ESTI
  18. echo.
  19. echo     Your selected path was %1
  20. goto end
  21.  
  22.  
  23. :DriveOK
  24. rem  the paths OK so check if old version is here
  25.  
  26. if exist %1\AESTI.EXE goto PathOK
  27. cls
  28. echo.
  29. echo    ┌──────────────────────────────────────────────────────────────────────┐
  30. echo    │                                                                      │
  31. echo    │    Error - unable to find old version of AEsti in this directory     │
  32. echo    │                                                                      │
  33. echo    └──────────────────────────────────────────────────────────────────────┘
  34. echo.
  35. echo     Use -EXIST Destination where Destination is the path where the old
  36. echo     version of AEsti is located
  37. echo.
  38. echo     If the old version is located in C:\ESTI then use  -EXIST C:\ESTI
  39. echo.
  40. echo     Your selected path was %1
  41. goto end
  42.  
  43.  
  44. :PathOK
  45. rem  found a version, make sure user has backed up all old files
  46. cls
  47. echo.
  48. echo.
  49. echo    ┌───────────────────────────────────────────────────────────────────────┐
  50. echo    │     *** Warning ***        *** Warning ***      *** Warning ***       │
  51. echo    │                                                                       │
  52. echo    │                                                                       │
  53. echo    │ You MUST make a backup copy of the OLD version first before upgrading │
  54. echo    │ to the new version, files are erased during the upgrade and can not   │
  55. echo    │ be recovered !                                                        │
  56. echo    │                                                                       │
  57. echo    └───────────────────────────────────────────────────────────────────────┘
  58. echo.
  59. echo      Keep the CTRL key pressed down and then press C to cancel the upgrade
  60. echo      or press any other key to continue
  61. pause>nul
  62.  
  63. cls
  64. echo.
  65. echo    ┌───────────────────────────────────────────────────────────────────────┐
  66. echo    │                                                                       │
  67. echo    │     Upgrading the old version - please wait                           │
  68. echo    │                                                                       │
  69. echo    └───────────────────────────────────────────────────────────────────────┘
  70. echo.
  71.  
  72. copy *.exe %1
  73. copy *.doc %1
  74. copy *.hlp %1
  75.  
  76. echo    ┌───────────────────────────────────────────────────────────────────────┐
  77. echo    │                                                                       │
  78. echo    │     Software has been upgraded successfully !                         │
  79. echo    │                                                                       │
  80. echo    └───────────────────────────────────────────────────────────────────────┘
  81. echo.
  82. goto End
  83.  
  84. :Help
  85. echo.
  86. echo   ┌──────────────────────────────────────────────────────────────────────────┐
  87. echo   │            Installs and Upgrades an EXISTING version of AEsti            │
  88. echo   └──────────────────────────────────────────────────────────────────────────┘
  89. echo.
  90. echo    Use a command line of -EXIST Destination  where Destination is the drive
  91. echo    and directory containing the old version of AEsti
  92. echo.
  93. echo    If the old version is located in C:\ESTI then use  -EXIST C:\ESTI
  94. echo.
  95. echo    Do not use a trailing slash such as C:\ESTI\. This batch file must be
  96. echo    run from where the new version of the software is located
  97. echo.
  98. echo   Warning !
  99. echo   ─────────
  100. echo    Before upgrading make a backup copy of the OLD version, old files are
  101. echo    erased during the upgrade and can not be recovered !
  102. echo.
  103. echo   Manual Installation
  104. echo   ───────────────────
  105. echo    If you are familiar with DOS then just copy all new files with .EXE,
  106. echo    .HLP and .DOC file extensions to where the old version is located
  107.  
  108. :End
  109. echo.
  110.